# coding: utf-8
class Item(object):
    def __init__(self, id, managerName, artificialPersonName, registerNo, establishDate, managerHasProduct, url,
                 registerDate, registerAddress, registerProvince, registerCity, regAdrAgg, fundCount, fundScale,
                 paidInCapital, subscribedCapital, hasSpecialTips, inBlacklist, hasCreditTips,
                 regCoordinate, officeAddress, officeProvince, officeCity, primaryInvestType):
        self.id = id
        self.managerName = managerName
        self.artificialPersonName = artificialPersonName
        self.registerNo = registerNo
        self.establishDate = establishDate
        self.managerHasProduct = managerHasProduct
        self.url = url
        self.registerDate = registerDate
        self.registerAddress = registerAddress
        self.registerProvince = registerProvince
        self.registerCity = registerCity
        self.regAdrAgg = regAdrAgg
        self.fundCount = fundCount
        self.fundScale = fundScale
        self.paidInCapital = paidInCapital
        self.subscribedCapital = subscribedCapital
        self.hasSpecialTips = hasSpecialTips
        self.inBlacklist = inBlacklist
        self.hasCreditTips = hasCreditTips
        self.regCoordinate = regCoordinate
        self.officeAddress = officeAddress
        self.officeProvince = officeProvince
        self.officeCity = officeCity
        self.primaryInvestType = primaryInvestType

    def values_2_string(self):
        temp = ''
        for name, value in vars(self).items():
            if (name == 'id'):
                temp = '"' + value + '"'
            else:
                temp = temp + ',' + '"' + str(value) + '"'
        return temp
